Optimal. Leaf size=59 \[ \frac {A x \sqrt {\cos (c+d x)}}{\sqrt {b \cos (c+d x)}}+\frac {B \sin (c+d x) \sqrt {\cos (c+d x)}}{d \sqrt {b \cos (c+d x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.01, antiderivative size = 59, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 33, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.061, Rules used = {17, 2637} \[ \frac {A x \sqrt {\cos (c+d x)}}{\sqrt {b \cos (c+d x)}}+\frac {B \sin (c+d x) \sqrt {\cos (c+d x)}}{d \sqrt {b \cos (c+d x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 17
Rule 2637
Rubi steps
\begin {align*} \int \frac {\sqrt {\cos (c+d x)} (A+B \cos (c+d x))}{\sqrt {b \cos (c+d x)}} \, dx &=\frac {\sqrt {\cos (c+d x)} \int (A+B \cos (c+d x)) \, dx}{\sqrt {b \cos (c+d x)}}\\ &=\frac {A x \sqrt {\cos (c+d x)}}{\sqrt {b \cos (c+d x)}}+\frac {\left (B \sqrt {\cos (c+d x)}\right ) \int \cos (c+d x) \, dx}{\sqrt {b \cos (c+d x)}}\\ &=\frac {A x \sqrt {\cos (c+d x)}}{\sqrt {b \cos (c+d x)}}+\frac {B \sqrt {\cos (c+d x)} \sin (c+d x)}{d \sqrt {b \cos (c+d x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.05, size = 42, normalized size = 0.71 \[ \frac {\sqrt {\cos (c+d x)} (A (c+d x)+B \sin (c+d x))}{d \sqrt {b \cos (c+d x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.93, size = 187, normalized size = 3.17 \[ \left [-\frac {A \sqrt {-b} \cos \left (d x + c\right ) \log \left (2 \, b \cos \left (d x + c\right )^{2} + 2 \, \sqrt {b \cos \left (d x + c\right )} \sqrt {-b} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right ) - b\right ) - 2 \, \sqrt {b \cos \left (d x + c\right )} B \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right )}{2 \, b d \cos \left (d x + c\right )}, \frac {A \sqrt {b} \arctan \left (\frac {\sqrt {b \cos \left (d x + c\right )} \sin \left (d x + c\right )}{\sqrt {b} \cos \left (d x + c\right )^{\frac {3}{2}}}\right ) \cos \left (d x + c\right ) + \sqrt {b \cos \left (d x + c\right )} B \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right )}{b d \cos \left (d x + c\right )}\right ] \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {{\left (B \cos \left (d x + c\right ) + A\right )} \sqrt {\cos \left (d x + c\right )}}{\sqrt {b \cos \left (d x + c\right )}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.18, size = 39, normalized size = 0.66 \[ \frac {\left (\sqrt {\cos }\left (d x +c \right )\right ) \left (A \left (d x +c \right )+B \sin \left (d x +c \right )\right )}{d \sqrt {b \cos \left (d x +c \right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.59, size = 40, normalized size = 0.68 \[ \frac {\frac {2 \, A \arctan \left (\frac {\sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1}\right )}{\sqrt {b}} + \frac {B \sin \left (d x + c\right )}{\sqrt {b}}}{d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.54, size = 61, normalized size = 1.03 \[ \frac {\sqrt {\cos \left (c+d\,x\right )}\,\sqrt {b\,\cos \left (c+d\,x\right )}\,\left (B\,\sin \left (2\,c+2\,d\,x\right )+2\,A\,d\,x\,\cos \left (c+d\,x\right )\right )}{b\,d\,\left (\cos \left (2\,c+2\,d\,x\right )+1\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 12.68, size = 46, normalized size = 0.78 \[ \begin {cases} \frac {A x}{\sqrt {b}} + \frac {B \sin {\left (c + d x \right )}}{\sqrt {b} d} & \text {for}\: d \neq 0 \\\frac {x \left (A + B \cos {\relax (c )}\right ) \sqrt {\cos {\relax (c )}}}{\sqrt {b \cos {\relax (c )}}} & \text {otherwise} \end {cases} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________